<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../extjs_all/resources/css/ext-all.css"></link>
<script type="text/javascript" src="../../extjs_all/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../extjs_all/ext-all.js"></script>
<script type="text/javascript" src="../../extjs_all/source/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
Ext.onReady(function (){
	Ext.QuickTips.init();	//初始化Ext.QuickTips，以使得tip提示可用
	Ext.form.Field.prototype.msgTarget='side';		//提示后面显示图片标记
	
	SimpleTreePanel = Ext.extend(Ext.tree.TreePanel,{
		constructor:function(){
			SimpleTreePanel.superclass.constructor.call(this,{
				renderTo:Ext.getBody(),
				width:200,
				height:300,
				autoScroll : true, // 自动滚动
				 //autoScroll : true,
	              //  autoHeight : true,
				loader:new Ext.tree.TreeLoader({
					url:'roleauthtree.action'
					//url:'treedata.js'
				}),
				root:new Ext.tree.AsyncTreeNode({
					text:'树结构',
					id:'0'
				})
			})
		}
	})
	new SimpleTreePanel();
});
</script>
<title>Tree Panel</title>
</head>
<body>

</body>
</html>